﻿using Production.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace Production.RazorLib.Services
{
    public interface IStandardBomService
    {
        Task<PaginatedResult<StandardBomInfoResponseDto>?> QueryStandardBomsByPage(
            StandardBomSearchRequestDto searchRequestDto);

        Task<Result<StandardBomInfoResponseDto>?> CreateStandardBom(StandardBomEditRequestDto editRequestDto);
        
        Task<Result<IList<StandardBomInfoResponseDto>>?> QueryStandardBoms(StandardBomSearchRequestDto standardBomSearchRequestDto);
        
        Task<Result<StandardBomInfoResponseDto>?> GetStandardBom(int key);
        
        Task<Result<StandardBomInfoResponseDto>?> UpdateStandardBom(int? key, StandardBomEditRequestDto editRequestDto);
    }
}